import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      redirect:'/home'
    },
    {
      path: '/home',
      name: 'Home',
      component: ()=>import('../pages/Home/home.vue')
    },
    {
      path: '/broadcast',
      name: 'Broadcast',
      component: ()=>import('../pages/Broadcast/broadcast.vue')
    },
    {
      path: '/audio',
      name: 'audio',
      component: ()=>import('../pages/Audio/audio.vue'),children:[
        {path:'',component:()=>import("@/pages/Audio/film")},
        {path:'film',component:()=>import("@/pages/Audio/film")},
        {path:'read',component:()=>import("@/pages/Audio/read")},
        {path:'tv',component:()=>import("@/pages/Audio/tv")},
        {path:'city',component:()=>import("@/pages/Audio/city")},
        {path:'music',component:()=>import("@/pages/Audio/music")},
      ]
    },
    {
      path: '/group',
      name: 'group',
      component: ()=>import('../pages/Group/group.vue')
    },
    {
      path: '/mine',
      name: 'Mine',
      component: ()=>import('../pages/Mine/mine.vue')
    },
  ]
})
